Fully Qualified Name: | Laminas\View\Helper\Layout |
Extends: | AbstractHelper |
View helper for retrieving layout object
Name | Description | Defined By |
---|---|---|
__invoke() | Set layout template or retrieve "layout" view model | Layout |
getLayout() | Get layout template | Layout |
getView() | Get the view object | AbstractHelper |
setTemplate() | Set layout template | Layout |
setView() | Set the View object | AbstractHelper |
Set layout template or retrieve "layout" view model
If no arguments are given, grabs the "root" or "layout" view model. Otherwise, attempts to set the template for that view model.
Parameter Name | Type | Description |
---|---|---|
$template | null|string |
Returns: \Layout
Get layout template
Returns: string
Get the view object
Returns: null|\Renderer
Set layout template
Parameter Name | Type | Description |
---|---|---|
$template | string |
Returns: \Layout
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper